<!--
 * @Autor: Haiting Zhao
 * @Date: 2022-02-26 14:42:26
 * @LastEditors: Haiting Zhao
 * @LastEditTime: 2022-04-05 18:33:43
 * @Description: file content
 * @FilePath: \league_and_student_organization_management_system_font\src\views\Home.vue
-->
<template>
  <div class="home">
    <div id="nav">
      <router-link to="/Login">Login</router-link>
      <a href="#">|</a>
      <router-link to="/">Home</router-link>
    </div>
    首页内容写在这里
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'Home',
  components: {
  }
}
</script>
<style lang="scss">
#nav {
  padding: 30px;
  a {
    margin: 5px;
    float: right;
    position: sticky;
    position: -webkit-sticky; // 兼容 -webkit 内核的浏览器
    top: 10px; // 必须设一个值，否则不生效
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
